package com.hanlink.dsp.protocols;

/**
 * Created by zhanghb on 2015-11-21.
 */
public class PwmProtocol {

    public static final byte[] PWM_ON = new byte[]{(byte) 0xAA, 0x55, 0x03, 0x0F, 0x01, 0x0D, 0x0A};
    public static final byte[] PWM_OFF = new byte[]{(byte) 0xAA, 0x55, 0x03, 0x0F, 0x00, 0x0D, 0x0A};

    public static final byte[] PWM_SLAVE = new byte[]{(byte) 0xAA, 0x55, 0x03, 0x0F, 0x01, 0x0D, 0x0A};
    public static final byte[] PWM_FLASH = new byte[]{(byte) 0xAA, 0x55, 0x03, 0x0F, 0x02, 0x0D, 0x0A};

    public static final byte[] PWM_BREATH = new byte[]{(byte) 0xAA, 0x55, 0x03, 0x0F, 0x03, 0x0D, 0x0A};
    public static final byte[] PWM_CANDLE = new byte[]{(byte) 0xAA, 0x55, 0x03, 0x0F, 0x04, 0x0D, 0x0A};


    public static final byte[] PWM_RAINBOW = new byte[]{(byte) 0xAA, 0x55, 0x03, 0x0F, 0x00, 0x0D, 0x0A};

    public static final byte[] PWM_SPEED = new byte[]{(byte) 0xAA, 0x55, 0x03, (byte) 0xF3, 0x05, 0x0D, 0x0A};

    //    public static final byte[] PWM_AUX_ON = new byte[]{(byte) 0xAA, 0x55, 0x03, (byte) 0xF1, 0x0D, 0x0A};
//    public static final byte[] PWM_BLUETOOTH_ON = new byte[]{(byte) 0xAA, 0x55, 0x03, (byte) 0xF2, 0x0D, 0x0A};
//    public static final byte[] SPDF_ON = new byte[]{(byte) 0xAA, 0x55, 0x03, (byte) 0xF2, 0x0D, 0x0A};
    public static final byte[] PWM_AUX_ON = new byte[]{(byte) 0xAA, (byte) 0xAC, 0x03, (byte) 0xF1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, (byte) 0x55};
    public static final byte[] PWM_BLUETOOTH_ON = new byte[]{(byte) 0xAA, (byte) 0xAC, 0x03, (byte) 0xF2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, (byte) 0x55};
    public static final byte[] SPDF_ON = new byte[]{(byte) 0xAA, (byte) 0xAC, 0x03, (byte) 0xF3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, (byte) 0x55};
    public static final byte[] HIGH_ON = new byte[]{(byte) 0xAA, (byte) 0xAC, 0x03, (byte) 0xF4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, (byte) 0x55};
    public static final byte[] LOW_ON = new byte[]{(byte) 0xAA, (byte) 0xAC, 0x03, (byte) 0xF5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, (byte) 0x55};
    //AA 55 03 F1 0D 0A, 切换到AUX,
    //AA 55 03 F2 0D 0A, 切换到蓝牙,

    public static final byte[] PWM_COLOR = new byte[]{(byte) 0xAA, 0x55, 0x03, (byte) 0xF0, 0x00, 0x00, 0x00, 0x0D, 0x0A};
}
